package com.hirsi.module.menu.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("编辑菜单参数")
@Data
public class EditMenuVo {

    @ApiModelProperty("菜单/操作id，更新时传入")
    private Integer id;

    @ApiModelProperty(value = "父级id，顶级为0", position = 1)
    private Integer pid = 0;

    @ApiModelProperty(value = "名称", required = true, position = 2)
    private String name;

    @ApiModelProperty(value = "图标", position = 3)
    private String icon;

    @ApiModelProperty(value = "类型：0-菜单，1-操作", required = true, position = 4)
    private Integer type;

    @ApiModelProperty(value = "链接/事件", required = true, position = 5)
    private String click;

    @ApiModelProperty(value = "按钮位置：0-工具栏，1-行按钮，type为1时必传", position = 6)
    private Integer showPosition;

    @ApiModelProperty(value = "状态：0-正常，1-禁用", required = true, position = 7)
    private Integer status;

    @ApiModelProperty(value = "菜单/操作具有的api权限", position = 8)
    private List<String> apiUrls;
}
